package com.jqq.codeblock_;

public class CodeBlock01 {
    public static void main(String[] args) {
//        System.out.println(Movie.age);
        new Movie("11");
    }
}
class AA{
    static {
        System.out.println("aa");
    }
}
class Movie extends AA{
    private String name;
    private double price;
    private String director;
    public static int age = 0;

    static {
        System.out.println("静态代码块");
    }
    {
        System.out.println("Movie普通代码块");
    }
    public Movie(String name) {
        this.name = name;
    }

    public Movie(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public Movie(String name, double price, String director) {
        this.name = name;
        this.price = price;
        this.director = director;
    }
}